export type propagationEvent = { stopPropagation(): void };
// 阻止事件冒泡
export const preventEvent = (e: propagationEvent) => {
  e && typeof e.stopPropagation === "function" && e.stopPropagation();
};
// 空操作
export const noop = (e: propagationEvent,disabledTouchmove = true) => {
  disabledTouchmove&&preventEvent(e);
};
